<template>
  <div id="app">
    <h3>请选择你喜欢的专栏</h3>
    <label v-for="(item,index) in list" :key="index">
      <input type="checkbox"  v-model="type" :value="item" />{{item}}
    </label>
    
    <ul>
      <li v-for="(item,index) in type" :key="index"> {{item}}</li>
    </ul>
  </div>
</template>

<script>
export default {
  props: {},
  components: {},
  data() {
    return {
      list:["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
      type:[]
    }
  },
}
</script>

<style>
* {
  margin: 0;
  padding: 0;
}
div {
  text-align: center;
}
table {
  margin: 0 auto;
}
</style>
